<template>
    <div class="app-header navbar">

        <div class="header-box box-shadow clearfloat">

            <div class="nav navbar-nav fl">
                <i class="iconfont">&#xe711;</i>
            </div>

            <div class="nav navbar-nav fl">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">
                    华北一区<i class="font-12 el-icon-caret-bottom el-icon--right"></i>
                  </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>华东一区</el-dropdown-item>
                        <el-dropdown-item>华北二区</el-dropdown-item>
                        <el-dropdown-item>华南三区</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>

            <ul class="nav navbar-nav no-m-r fr">

                <li class="dropdown fl">
                    <el-badge is-dot class="pos-item">
                        <i class="iconfont">&#xe66b;</i>
                    </el-badge>
                </li>

                <li class="dropdown fl">
                    <el-badge is-dot class="pos-item">
                        <i class="iconfont">&#xe708;</i>
                    </el-badge>
                </li>



                <li class="dropdown fl b-l-r">
                    <span>¥47.00</span>
                </li>

                <li class="personal fl">
                    <span class="thumb-sm avatar">
                        <img src="../assets/img/b1.jpg"/>
                    </span>

                    <el-dropdown trigger="click">
                          <span class="el-dropdown-link">
                            左右黑马<i class="font-12 el-icon-caret-bottom el-icon--right"></i>
                          </span>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item>个人资料</el-dropdown-item>
                            <el-dropdown-item>退出登录</el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>

                </li>

            </ul>


        </div>

        <!--<el-menu default-active="2" class="el-menu-demo" mode="horizontal" @select="handleSelect">
            <el-menu-item index="1"><i class="el-icon-menu"></i></el-menu-item>
            <el-menu-item index="2">处理中心</el-menu-item>
            <el-submenu index="3">
                <template slot="title">我的工作台</template>
                <el-menu-item index="3-1">选项1</el-menu-item>
                <el-menu-item index="3-2">选项2</el-menu-item>
                <el-menu-item index="3-3">选项3</el-menu-item>
            </el-submenu>
            <el-menu-item index="4">订单管理</el-menu-item>
        </el-menu>-->
    </div>
</template>
<style>
    *{
        padding: 0;
        margin: 0;
    }

    .app-header{
        height: 50px;
        background:#fff;
        z-index: 1000;
        position: fixed;
        top:0;
        width: 87.5%;
    }

    .header-box{
        height: 100%;
        padding: 0 22px;
    }

    .box-shadow{
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
    }

    .navbar-nav{
        height: 100%;
        line-height: 50px;
        color: #666;
        margin-right: 25px;
    }

    .b-l-r{
        padding: 0 10px;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }

    .pos-item .is-dot{
        top:14px;
    }

    ul li.dropdown{
        cursor: pointer;
        margin-left: 26px;
    }

    .font-12{
        font-size: 12px;
    }

    .personal{
        padding-left: 15px;
    }

    .thumb-sm{
        display: inline-block;
        width: 30px;
        height: 100%;
        text-align: center;
        margin-right: 5px;
    }

    .thumb-sm img{
        width: 100%;
        border-radius: 50%;
        vertical-align: middle;
    }

    .no-m-r{
        margin-right: 0 !important;
    }


</style>
<script>

    export default{
        data(){
            return{
                msg:'hello vue'
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }

</script>
